<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>修改密码</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<SCRIPT LANGUAGE="JavaScript">
<!--
function check()
{
	if (thisForm.oldPass.value=='')
	{
		alert('原口令不能为空！');
		thisForm.oldPass.focus();
		return false;
	}
	if (thisForm.newPass.value!='' && thisForm.newPass.value!='' &&  thisForm.newPass.value==thisForm.newPass1.value)
	{
		if (thisForm.oldPass.value==thisForm.newPass.value)
		{
			alert('新口令和原口令一致');
			return false;
		}
		thisForm.submit();
	}
	else
	{
		alert('口令不能为空且两次输入必须匹配！');
		thisForm.newPass.focus();
		return false;
	}
}
//-->
</SCRIPT></head>
<body>
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='titleContainer'><tr><td class='titleLeft'>&nbsp;</td><td class='titleMain'>更改口令</td><td class='titleRight'>&nbsp;</td></tr></table>
<form  action="/SBD_OASystem/ll/gerenaction!updatePass2.action" method="post" style="margin-top:5px">
  <table width="100%" class="cardBody">
    <tr>
      <td class="cardOddlineLabel">原口令：</td>
      <td class="cardOddlineData">
          <input type="password" name="oldPass" maxlength="12"/><input type="hidden" value='<s:property value='emp.epass'/>'/>
      </td>
    </tr>
    <tr>
      <td class="cardEvenlineLabel">新口令：</td>
      <td class="cardEvenlineData">
          <input type="password" id="epass" maxlength="12" />
      </td>
    </tr>
    <tr>
      <td class="cardOddlineLabel">确认口令：</td>
      <td class="cardOddlineData">
          <input type="password" name="emp.epass" id="epass2" maxlength="12" />
      </td>
    </tr>
    <tr>
      <td colspan="2" class="cardFooter">
          <input type="submit" value="提  交" onclick="check()" class="defaultButton">
		  <input type="reset" name="reset1" value="重  填" class="defaultButton">
      </td>
    </tr>
  </table>
</form>
</body>
</html>